//
//  PickNumP3ViewController.h
//  PlayBall
//
//  Created by Sun Fanglei on 13-5-15.
//
//

#import "JddBaseViewController.h"
#import "JddQueryDigitalLotteryIssueOperation.h"
#import "JddLotteryIssue.h"
#import "JddPickerView.h"
#import "JddComboBoxView.h"
#import "JddIndexListView.h"
#import "JddFc3dNumber.h"
#import <AVFoundation/AVFoundation.h>
#import "JddRandomSelectNumView.h"

@interface JddPickNumP3ViewController : JddBaseViewController<UITabBarDelegate,UIAlertViewDelegate,QueryDigitalLotteryIssueOperationDelegate,ComboBoxViewDelegate, IndexListViewDelegate,UIGestureRecognizerDelegate, UIAccelerometerDelegate,RandomSelectNumViewDelegate>{
    @private
    NSTimer      *countDownTimer;
    NSDate       *endTime;
    NSDate       *currentTime;
    JddFc3dNumber   *lotteryNumber;
    NSMutableArray      *lotteryNumberArray;
    JddComboBoxView  *methodPick;
    JddIndexListView *indexList;
    BOOL          querystate;
    NSInteger      shakeCount;
    JddRandomSelectNumView *randomSelectNumberDialog;
    
    BOOL          sharked;
    UIImageView *rImv;
    UIButton *rBtn;
    UIView *rv;
}

SHARED_VIEW_CONTROLLER_DECLARE(JddPickNumP3ViewController);

@property (strong, nonatomic) IBOutlet UILabel *issueCodeLabel;
@property (strong, nonatomic) IBOutlet UILabel *remainTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *playIDTips;
@property (strong, nonatomic) IBOutlet UILabel *label1;
@property (strong, nonatomic) IBOutlet UILabel *label2;
@property (strong, nonatomic) IBOutlet UILabel *label3;
@property (strong, nonatomic) IBOutlet UILabel *zhushuLabel;
@property (strong, nonatomic) IBOutlet UILabel *moneyLabel;
@property (strong, nonatomic) IBOutlet UILabel *playIDnameLabel;
@property (strong, nonatomic) IBOutlet UIImageView *firstImagebg;
@property (strong, nonatomic) JddPickerView *playPickView;
@property (strong, nonatomic) JddLotteryIssue *currentLotteryIssue;

- (IBAction)changePlayIDClick:(id)sender;
- (IBAction)numberButtonClick:(id)sender;
- (IBAction)clearButtonClick:(id)sender;
- (IBAction)randomButtonClick:(id)sender;
- (IBAction)doneButtonClick:(id)sender;
- (IBAction)randomOne:(id)sender;

-(void)destoryView;

@end
